﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using King.Engine.GameObjects;
using Microsoft.Xna.Framework;
using BreacherCreature.Components.Lights;

namespace BreacherCreature.GameObjects
{
    public class Engineer : Human
    {
        static float POSSESSION_SECONDS = 2;
        public override float MaxPossessionSeconds
        {
            get
            {
                return POSSESSION_SECONDS;
            }
        }
        
        public Engineer(Point spawn)
            : base(POSSESSION_SECONDS, AnimationSets.Engineer, CharacterAnimations.Idle)
        {
            Speed = 200;

            Bounds.Location = spawn;
            Bounds.Width = SIZE;
            Bounds.Height = SIZE;

            AddComponent(new LightCone(325, Math.PI/7, Color.Gainsboro, new Vector2(128.5f, 122)));
        }


        public Engineer(string x, string y)
            : this(new Point(int.Parse(x), int.Parse(y)))
        {

        }
    }
}
